home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 810 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.5 KB

  1. From: moacs11!walra@relay.nl.net (Waldi Ravens)
  2. Subject: Re: Filesystem compatability ...
  3. Date: Fri, 14 Jan 1994 16:54:26 +0100
  4.  
  5. In <9401141119.AA08025@nyx.cs.du.edu>, Stephen Henson writes:
  6.  
  7. > Personally I'm in favour of run time code if at all possible. This has the
  8. > advantage of not requiring recompilation or two binary versions. This could
  9. > be made fairly transparent. E.g. for a shell if $HOME is on a Minixfs partition
  10. > use .shellrc if GEMDOS shell.rc .
  11.  
  12. Consider the statement:
  13.  
  14.         fd = creat( "/home/shenson/.shellrc", S_IRWXO | S_IRWXG );
  15.  
  16. It would be very nice if there were a tos filesystem driver that would
  17. translate the filename into shell.rc, it might even be possible to write
  18. such an intelligent driver (using a config file to find out what kind of
  19. translation should be done). Is it realistic? Maybe...
  20.  
  21. Ofcourse this would only work under MiNT, not under plain Gemdos. So the
  22. filename translation would have to be done by the creat() library function.
  23. The creat() function would have to find out on what type of filesystem the
  24. /home/shenson directory is located and, if appropriate, translate .shellrc
  25. to shell.rc . Is it possible? Might be. Is it realistic? I don't think so.
  26.  
  27. > Alternatively there is lways the possibility of binary configuration,
  28. > this is very easy with the nlist() finction. I can post an example of how
  29. > to do this if anyone isn't sure and it's the most compact solution.
  30.  
  31. Please post or send e-mail to me, whatever you think is more appropriate.
  32.  
  33.  
  34. Regards,
  35.            Waldi  (walra%moacs11@nl.net)
  36.